package com.qingke.dao;

import java.util.List;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

public interface WordMapper {
	
	@Select("select cn from word where en = #{en}")	
	String getWord(String em);
	
	@Select("select cn from word where en like concat('%' ,#{en},'%')")
	List<String> serach(String en);
	
	@Insert("insert into  word(en,cn) values(#{0},#{1})")
	void insertWord(String en ,String cn);
}
